<template>
	<view class="page_wrapper page_bg">
		<view v-html="article.content" class="article_detail"></view>
	</view>
</template>

<script>
	import {request} from '@/utils/request.js'
	export default {
		data() {
			return {
				articleNo: '',
				article: {}
			}
		},
		onLoad(options) {
			this.articleNo = options.articleNo
			uni.showLoading()
			// request.get(
			// 	'/articles/no,' + this.articleNo, {}
			// ).then(res => {
			// 	uni.hideLoading()
			// 	uni.setNavigationBarTitle({
			// 		title: res.title
			// 	})
			// 	this.article = res
			// }).catch(err => {
			// 	uni.hideLoading()
			// 	console.log(err)
			// })
		},
	}
</script>

<style lang="scss">
	.page_wrapper{
		.article_detail{
			margin: 15px;
			background-color: white;
			border-radius: 10px;
			padding: 15px;
			line-height: 30px;
			overflow-y: scroll;
		}
	}
</style>
